home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / CIncludes / DesktopAnimPanel.xh < prev    next >
Text File  |  1996-05-01  |  14KB  |  476 lines

  1.  
  2. /*
  3.  * This file was generated by the SOM Compiler.
  4.  * FileName: DesktopAnimPanel.xh.
  5.  * Generated using:
  6.  *     SOM Precompiler somipc: 2.18
  7.  *     SOM Emitter emitxh.dll: 2.33
  8.  */
  9.  
  10. #ifndef SOM_DesktopAnimPanel_xh
  11. #define SOM_DesktopAnimPanel_xh
  12.  
  13. class DesktopAnimPanel;
  14.  
  15. #define DesktopAnimPanel_MajorVersion 0
  16. #define DesktopAnimPanel_MinorVersion 0
  17.  
  18. /*
  19.  * Passthru lines: File: "C.xh", "before"
  20.  */
  21. #include <DesktopAnimation.h>
  22. #include <Displays.h>
  23.  
  24. /* C++ SOM defs */
  25. #include <somcls.xh>
  26. #include <somcm.xh>
  27.  
  28. /* C++ parent defs */
  29. #ifndef SOM_DesktopAnimBase_xh
  30. #include <DesktopAnimBase.xh>
  31. #endif
  32.  
  33. #ifndef DesktopAnimPanel_API
  34. #define DesktopAnimPanel_API
  35. /*
  36.  * -- The Class API
  37.  */
  38.  
  39. /*
  40.  * Start of user-defined types:
  41.  */
  42. class SOMClass;
  43. class SOMObject;
  44. class Repository;
  45.  
  46. /*
  47.  * End of user-defined types.
  48.  */
  49.  
  50. #ifdef OLDIBMSOMAPISUPPORT
  51. #define DesktopAnimPanelCClassData DesktopAnimPanelClassData
  52. #define DesktopAnimPanelNewClass(major,minor) somNewVersionedClassReference(DesktopAnimPanel,major,minor)
  53. #endif
  54.  
  55. /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
  56. #define DesktopAnimPanelMetaClass SOMClass
  57.  
  58. #if PRAGMA_ALIGN_SUPPORTED
  59. #  pragma options align=power
  60. #endif
  61.  
  62. /* The API to the DesktopAnimPanel class object, and the methods it introduces. */
  63. SOMEXTERN struct DesktopAnimPanelClassDataStructure {
  64. #ifdef OLDIBMSOMAPISUPPORT
  65.     SOMClass            *classObject;    /* always zero, use somNewClassReference instead */
  66. #else
  67.     long zero;
  68. #endif
  69.     somStaticClassInfo *sci;
  70.     somDToken        instanceDataToken;
  71.     long reserved [3];
  72.     somMToken Initialize;
  73.     somMToken Close;
  74. } SOMDLINK DesktopAnimPanelClassData;
  75.  
  76. #if PRAGMA_ALIGN_SUPPORTED
  77. #  pragma options align=reset
  78. #endif
  79.  
  80. #if !defined(DesktopAnimPanel_Class_Source) && !defined(SOM_Module_desktopanimpanel_Source)
  81. #if PRAGMA_IMPORT_SUPPORTED
  82. #pragma import list DesktopAnimPanelClassData
  83. #endif
  84. #endif
  85.  
  86.  
  87. /*
  88.  * -- Typedefs for DesktopAnimPanel Method Procedures
  89.  */
  90. SOMEXTERN {
  91. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_Initialize)(DesktopAnimPanel *somSelf, Environment *ev,
  92.         AVIDType prefsDisplayID,
  93.         DesktopAnimModuleDescRef moduleDescRef,
  94.         DesktopAnimModuleInfo* moduleInfo);
  95. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_Close)(DesktopAnimPanel *somSelf, Environment *ev);
  96.  
  97. /*
  98.  * -- Typedefs for Inherited Methods
  99.  */
  100. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_InitializeBase)(DesktopAnimPanel *somSelf, Environment *ev,
  101.         AVIDType prefsDisplayID,
  102.         DesktopAnimModuleDescRef moduleDescRef,
  103.         DesktopAnimModuleInfo* moduleInfo);
  104. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_CloseBase)(DesktopAnimPanel *somSelf, Environment *ev);
  105. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_AddDesktopAnimCollectionItem)(DesktopAnimPanel *somSelf, Environment *ev,
  106.         CollectionTag tag,
  107.         UInt32 itemSize,
  108.         void* itemData);
  109. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_GetDesktopAnimCollectionItem)(DesktopAnimPanel *somSelf, Environment *ev,
  110.         CollectionTag tag,
  111.         UInt32* itemSize,
  112.         void* itemData);
  113. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_GetDesktopAnimCollectionItemData)(DesktopAnimPanel *somSelf, Environment *ev,
  114.         CollectionTag tag,
  115.         MemAllocatorRef memAllocator,
  116.         UInt32* itemSize,
  117.         void** itemData);
  118. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_RemoveDesktopAnimCollectionItem)(DesktopAnimPanel *somSelf, Environment *ev,
  119.         CollectionTag tag);
  120. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_ReadDesktopAnimCollection)(DesktopAnimPanel *somSelf, Environment *ev);
  121. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_WriteDesktopAnimCollection)(DesktopAnimPanel *somSelf, Environment *ev);
  122. typedef OSStatus   (* SOMLINK somTD_DesktopAnimPanel_GetModuleDescription)(DesktopAnimPanel *somSelf, Environment *ev,
  123.         DesktopAnimModuleDescRef* moduleDescRef);
  124. typedef void   (* SOMLINK somTD_DesktopAnimPanel_somInit)(DesktopAnimPanel *somSelf);
  125. typedef void   (* SOMLINK somTD_DesktopAnimPanel_somUninit)(DesktopAnimPanel *somSelf);
  126. typedef SOMObject*   (* SOMLINK somTD_DesktopAnimPanel_somDuplicateReference)(DesktopAnimPanel *somSelf);
  127. typedef boolean   (* SOMLINK somTD_DesktopAnimPanel_somCompareReference)(DesktopAnimPanel *somSelf,
  128.         SOMObject* anObject);
  129. typedef SOMObject*   (* SOMLINK somTD_DesktopAnimPanel_somRelease)(DesktopAnimPanel *somSelf);
  130. typedef void   (* SOMLINK somTD_DesktopAnimPanel_somFree)(DesktopAnimPanel *somSelf);
  131. typedef boolean   (* SOMLINK somTD_DesktopAnimPanel_somCanDelete)(DesktopAnimPanel *somSelf);
  132. typedef SOMClass*   (* SOMLINK somTD_DesktopAnimPanel_somGetClass)(DesktopAnimPanel *somSelf);
  133. typedef corbastring   (* SOMLINK somTD_DesktopAnimPanel_somGetClassName)(DesktopAnimPanel *somSelf);
  134. typedef long   (* SOMLINK somTD_DesktopAnimPanel_somGetSize)(DesktopAnimPanel *somSelf);
  135. typedef boolean   (* SOMLINK somTD_DesktopAnimPanel_somIsA)(DesktopAnimPanel *somSelf,
  136.         SOMClass* aClassObj);
  137. typedef boolean   (* SOMLINK somTD_DesktopAnimPanel_somRespondsTo)(DesktopAnimPanel *somSelf,
  138.         somId mId);
  139. typedef boolean   (* SOMLINK somTD_DesktopAnimPanel_somIsInstanceOf)(DesktopAnimPanel *somSelf,
  140.         SOMClass* aClassObj);
  141. typedef boolean   (* SOMLINK somTD_DesktopAnimPanel_somDispatch)(DesktopAnimPanel *somSelf,
  142.         somToken* retValue,
  143.         somId methodId,
  144.         va_list ap);
  145. typedef boolean   (* SOMLINK somTD_DesktopAnimPanel_somClassDispatch)(DesktopAnimPanel *somSelf,
  146.         SOMClass* clsObj,
  147.         somToken* retValue,
  148.         somId methodId,
  149.         va_list ap);
  150. typedef boolean   (* SOMLINK somTD_DesktopAnimPanel_somCastObj)(DesktopAnimPanel *somSelf,
  151.         SOMClass* cls);
  152. typedef boolean   (* SOMLINK somTD_DesktopAnimPanel_somResetObj)(DesktopAnimPanel *somSelf);
  153. typedef SOMObject*   (* SOMLINK somTD_DesktopAnimPanel_somPrintSelf)(DesktopAnimPanel *somSelf);
  154. typedef void   (* SOMLINK somTD_DesktopAnimPanel_somDumpSelf)(DesktopAnimPanel *somSelf,
  155.         long level);
  156. typedef void   (* SOMLINK somTD_DesktopAnimPanel_somDumpSelfInt)(DesktopAnimPanel *somSelf,
  157.         long level);
  158. }
  159.  
  160. #endif /* DesktopAnimPanel_API */
  161.  
  162.  
  163. /*
  164.  * -- This emitter treats Method Tokens as Thunks by default.
  165.  * -- Use the sc modifier "nothunks" to change this default
  166.  */
  167. #undef somresolve_
  168. #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
  169.  
  170. /*
  171.  * -- The C++ Wrapper Class for DesktopAnimPanel
  172.  */
  173. class DesktopAnimPanel : public DesktopAnimBase
  174. {
  175. public:
  176.  
  177. // DesktopAnimPanel::new registers use of the class object, and then uses somNew
  178. // to allocate memory and load the object method table pointer. 
  179. void *operator new(size_t size)
  180. {
  181.     SOM_IgnoreWarning(size);
  182.     // Allocate memory using the default allocator for DesktopAnimPanel, and
  183.     // clear mem & set method table pointer, call basic initialization
  184.     return (void*) somNewObject(DesktopAnimPanel);
  185. }
  186.  
  187. // DesktopAnimPanel::delete uses the default deallocator for the object's class.
  188. void operator delete(void * obj)
  189. {
  190.     if (obj) {
  191.         SOM_Resolve(obj,SOMObject,somFree)
  192.            ( (SOMObject*) obj );
  193.     }
  194. }
  195.  
  196. /* method: Initialize */
  197. OSStatus   Initialize(Environment *ev,
  198.         AVIDType prefsDisplayID,
  199.         DesktopAnimModuleDescRef moduleDescRef,
  200.         DesktopAnimModuleInfo* moduleInfo)
  201. {
  202.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimPanel,Initialize)
  203.     (this,ev,prefsDisplayID,moduleDescRef,moduleInfo);
  204. }
  205.  
  206. /* method: Close */
  207. OSStatus   Close(Environment *ev)
  208. {
  209.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimPanel,Close)
  210.     (this,ev);
  211. }
  212.  
  213.  
  214. /*
  215.  * -- Inherited methods
  216.  */
  217. /* method: InitializeBase */
  218. OSStatus   InitializeBase(Environment *ev,
  219.         AVIDType prefsDisplayID,
  220.         DesktopAnimModuleDescRef moduleDescRef,
  221.         DesktopAnimModuleInfo* moduleInfo)
  222. {
  223.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimBase,InitializeBase)
  224.     (this,ev,prefsDisplayID,moduleDescRef,moduleInfo);
  225. }
  226.  
  227. /* method: CloseBase */
  228. OSStatus   CloseBase(Environment *ev)
  229. {
  230.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimBase,CloseBase)
  231.     (this,ev);
  232. }
  233.  
  234. /* method: AddDesktopAnimCollectionItem */
  235. OSStatus   AddDesktopAnimCollectionItem(Environment *ev,
  236.         CollectionTag tag,
  237.         UInt32 itemSize,
  238.         void* itemData)
  239. {
  240.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimBase,AddDesktopAnimCollectionItem)
  241.     (this,ev,tag,itemSize,itemData);
  242. }
  243.  
  244. /* method: GetDesktopAnimCollectionItem */
  245. OSStatus   GetDesktopAnimCollectionItem(Environment *ev,
  246.         CollectionTag tag,
  247.         UInt32* itemSize,
  248.         void* itemData)
  249. {
  250.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimBase,GetDesktopAnimCollectionItem)
  251.     (this,ev,tag,itemSize,itemData);
  252. }
  253.  
  254. /* method: GetDesktopAnimCollectionItemData */
  255. OSStatus   GetDesktopAnimCollectionItemData(Environment *ev,
  256.         CollectionTag tag,
  257.         MemAllocatorRef memAllocator,
  258.         UInt32* itemSize,
  259.         void** itemData)
  260. {
  261.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimBase,GetDesktopAnimCollectionItemData)
  262.     (this,ev,tag,memAllocator,itemSize,itemData);
  263. }
  264.  
  265. /* method: RemoveDesktopAnimCollectionItem */
  266. OSStatus   RemoveDesktopAnimCollectionItem(Environment *ev,
  267.         CollectionTag tag)
  268. {
  269.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimBase,RemoveDesktopAnimCollectionItem)
  270.     (this,ev,tag);
  271. }
  272.  
  273. /* method: ReadDesktopAnimCollection */
  274. OSStatus   ReadDesktopAnimCollection(Environment *ev)
  275. {
  276.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimBase,ReadDesktopAnimCollection)
  277.     (this,ev);
  278. }
  279.  
  280. /* method: WriteDesktopAnimCollection */
  281. OSStatus   WriteDesktopAnimCollection(Environment *ev)
  282. {
  283.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimBase,WriteDesktopAnimCollection)
  284.     (this,ev);
  285. }
  286.  
  287. /* method: GetModuleDescription */
  288. OSStatus   GetModuleDescription(Environment *ev,
  289.         DesktopAnimModuleDescRef* moduleDescRef)
  290. {
  291.    return SOM_ResolveD(this,DesktopAnimPanel,DesktopAnimBase,GetModuleDescription)
  292.     (this,ev,moduleDescRef);
  293. }
  294.  
  295. /* method: somInit */
  296. void   somInit()
  297. {
  298.    SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somInit)
  299.     (this);
  300. }
  301.  
  302. /* method: somUninit */
  303. void   somUninit()
  304. {
  305.    SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somUninit)
  306.     (this);
  307. }
  308.  
  309. /* method: somDuplicateReference */
  310. SOMObject*   somDuplicateReference()
  311. {
  312.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somDuplicateReference)
  313.     (this);
  314. }
  315.  
  316. /* method: somCompareReference */
  317. boolean   somCompareReference(SOMObject* anObject)
  318. {
  319.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somCompareReference)
  320.     (this,anObject);
  321. }
  322.  
  323. /* method: somRelease */
  324. SOMObject*   somRelease()
  325. {
  326.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somRelease)
  327.     (this);
  328. }
  329.  
  330. /* method: somFree */
  331. void   somFree()
  332. {
  333.    SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somFree)
  334.     (this);
  335. }
  336.  
  337. /* method: somCanDelete */
  338. boolean   somCanDelete()
  339. {
  340.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somCanDelete)
  341.     (this);
  342. }
  343.  
  344. /* method: somGetClass */
  345. SOMClass*   somGetClass()
  346. {
  347.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somGetClass)
  348.     (this);
  349. }
  350.  
  351. /* method: somGetClassName */
  352. corbastring   somGetClassName()
  353. {
  354.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somGetClassName)
  355.     (this);
  356. }
  357.  
  358. /* method: somGetSize */
  359. long   somGetSize()
  360. {
  361.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somGetSize)
  362.     (this);
  363. }
  364.  
  365. /* method: somIsA */
  366. boolean   somIsA(SOMClass* aClassObj)
  367. {
  368.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somIsA)
  369.     (this,aClassObj);
  370. }
  371.  
  372. /* method: somRespondsTo */
  373. boolean   somRespondsTo(somId mId)
  374. {
  375.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somRespondsTo)
  376.     (this,mId);
  377. }
  378.  
  379. /* method: somIsInstanceOf */
  380. boolean   somIsInstanceOf(SOMClass* aClassObj)
  381. {
  382.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somIsInstanceOf)
  383.     (this,aClassObj);
  384. }
  385.  
  386. /* va_list method: somDispatch */
  387. /* the va_list invocation form */
  388. boolean   DesktopAnimPanel_somDispatch(somToken* retValue,
  389.         somId methodId,
  390.         va_list ap)
  391. {
  392.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somDispatch)
  393.     (this,retValue,methodId,ap);
  394. }
  395.  
  396. /* the varargs invocation form */
  397. boolean   somDispatch(somToken* retValue,
  398.         somId methodId,
  399.         ...)
  400. {
  401.    va_list ap;
  402.    va_start(ap, methodId);
  403.       boolean __somResult = 
  404.       (boolean) SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somDispatch)
  405.     (this,retValue,methodId,ap);
  406.    va_end(ap);
  407.    return __somResult;
  408. }
  409.  
  410. /* va_list method: somClassDispatch */
  411. /* the va_list invocation form */
  412. boolean   DesktopAnimPanel_somClassDispatch(SOMClass* clsObj,
  413.         somToken* retValue,
  414.         somId methodId,
  415.         va_list ap)
  416. {
  417.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somClassDispatch)
  418.     (this,clsObj,retValue,methodId,ap);
  419. }
  420.  
  421. /* the varargs invocation form */
  422. boolean   somClassDispatch(SOMClass* clsObj,
  423.         somToken* retValue,
  424.         somId methodId,
  425.         ...)
  426. {
  427.    va_list ap;
  428.    va_start(ap, methodId);
  429.       boolean __somResult = 
  430.       (boolean) SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somClassDispatch)
  431.     (this,clsObj,retValue,methodId,ap);
  432.    va_end(ap);
  433.    return __somResult;
  434. }
  435.  
  436. /* method: somCastObj */
  437. boolean   somCastObj(SOMClass* cls)
  438. {
  439.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somCastObj)
  440.     (this,cls);
  441. }
  442.  
  443. /* method: somResetObj */
  444. boolean   somResetObj()
  445. {
  446.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somResetObj)
  447.     (this);
  448. }
  449.  
  450. /* method: somPrintSelf */
  451. SOMObject*   somPrintSelf()
  452. {
  453.    return SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somPrintSelf)
  454.     (this);
  455. }
  456.  
  457. /* method: somDumpSelf */
  458. void   somDumpSelf(long level)
  459. {
  460.    SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somDumpSelf)
  461.     (this,level);
  462. }
  463.  
  464. /* method: somDumpSelfInt */
  465. void   somDumpSelfInt(long level)
  466. {
  467.    SOM_ResolveD(this,DesktopAnimPanel,SOMObject,somDumpSelfInt)
  468.     (this,level);
  469. }
  470.  
  471. };   /* DesktopAnimPanel */
  472.  
  473.  
  474.  
  475. #endif       /* SOM_DesktopAnimPanel_xh */
  476.